<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>

    <!-- 1.通过link标签的media属性确定加载规则 -->
    <!-- 当设备分辨率<=800px 加载grenn.css -->
    <!-- <link rel="stylesheet" media="screen and (max-width:800px) " href="css/green.css"> -->
    <!-- 当设备分辨率>=800px 加载red.css -->
    <!-- <link rel="stylesheet" media="screen and (min-width:900px) " href="css/red.css"> -->
    <!-- 2.在css文件里面进行媒体查询 -->
    <link rel="stylesheet" href="css/xys.css">
</head>


<body>
    <h1>Hello world!</h1>
</body>

</html>